import character


def gen(content):
    # 获得用户
    sender = content['sender']
    user_id = sender['user_id']
    commond = content['message']
    commond = commond.replace('.nn ', '')
    if commond == '':
        return '请输入名称'
    if ' ' in commond.strip():
        return '名称种请不要带空格'
    character.add_user(user_id, commond)
    return '创建角色 {commond} 成功'


